package com.wanxi.test;

import java.util.Random;

public class DiceThree {
    public static void main(String[] args) {
        Random random = new Random();
        int time = 0;
        while (true) {
            if (time % 6 == 0) {
                int a = random.nextInt(6) + 1;
                System.out.print(a + "" + a + "" + a);
            } else {
                for (int i = 0; i < 3; i++) {
                    System.out.print(random.nextInt(6) + 1);
                }
            }

            time++;
            if (time > 100) {
                break;
            }
            System.out.println();
        }
    }
}
